home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Utils / GParted Live CD / Bin / gparted-livecd-0.2.2.iso / bin / depth < prev    next >
Encoding:
Text File  |  2006-02-14  |  1.3 KB  |  53 lines

  1. #!/bin/sh
  2. ############################################################################
  3. #    Copyright (C) 2005 by Patrick J. Verner                               #
  4. #    exodusrobot@yahoo.com                                                 #
  5. #                                                                          #
  6. #    This program is free software; you can redistribute it and/or modify  #
  7. #    it under the terms of the GNU General Public License as published by  #
  8. #    the Free Software Foundation; either version 2 of the License, or     #
  9. #    (at your option) any later version.                                   #
  10. ############################################################################
  11.  
  12. #make sure temp exists
  13. temp=/tmp/depth
  14. temp1=/tmp/depth
  15. if [ ! -d $temp1 ]
  16.   then
  17.     mkdir -p $temp1
  18.     chmod 700 $temp1
  19. fi
  20.  
  21. #**********main menu**********
  22. item="24"
  23. while [ 0 ]
  24.   do
  25. dialog --title "GParted LiveCD Display Depth" --default-item "$item" --backtitle "GParted Livecd" --menu "Select your screen depth:" 13 40 2 \
  26. "24" "" \
  27. "32" "" \
  28. 2> $temp1/return
  29. if [ ! $? = 0 ]
  30.   then
  31.     break
  32. fi
  33. REPLY=`cat $temp1/return`
  34. rm -f $temp1/return
  35.  
  36. #24
  37. if [ "$REPLY" = "24" ]
  38.   then
  39. cat >> /root/X << "EOF"
  40. 24 -shadow -3button -nolisten tcp
  41. EOF
  42. break
  43. fi
  44.  
  45. #32
  46. if [ "$REPLY" = "32" ]
  47.   then
  48. cat >> /root/X << "EOF"
  49. 32 -shadow -3button -nolisten tcp
  50. EOF
  51. break
  52. fi
  53. done